<html data-dpr="1" style="font-size: 37.5px;">
 <head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
  <title>投注明细</title>
  <link href="/ascss/1.css" rel="stylesheet" />
  <style type="text/css" title="fading circle style">.circle-color-13 > div::before { background-color: #ccc; }</style>
   <script>
    (function (win, lib) {
      var doc = win.document
      var docEl = doc.documentElement
      var metaEl = doc.querySelector('meta[name="viewport"]')
      var flexibleEl = doc.querySelector('meta[name="flexible"]')
      var dpr = 0
      var scale = 0
      var tid
      var flexible = lib.flexible || (lib.flexible = {})
 
      if (metaEl) {
        console.warn('将根据已有的meta标签来设置缩放比例')
        var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
        if (match) {
          scale = parseFloat(match[1])
          dpr = parseInt(1 / scale)
        }
      } else if (flexibleEl) {
        var content = flexibleEl.getAttribute('content')
        if (content) {
          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/)
          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/)
          if (initialDpr) {
            dpr = parseFloat(initialDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
          if (maximumDpr) {
            dpr = parseFloat(maximumDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
        }
      }
 
      if (!dpr && !scale) {
        var isAndroid = win.navigator.appVersion.match(/android/gi)
        var isIPhone = win.navigator.appVersion.match(/iphone/gi)
        var devicePixelRatio = win.devicePixelRatio
//          if (isIPhone) {
//            // iOS下，对于2和3的屏，用2倍的方案，其余的用1倍方案
//            if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
//              dpr = 3;
//            } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
//              dpr = 2;
//            } else {
//              dpr = 1;
//            }
//          } else {
//            // 其他设备下，仍旧使用1倍的方案
//            dpr = 1;
//          }
        dpr = 1
        scale = 1 / dpr
      }
 
      docEl.setAttribute('data-dpr', dpr)
      if (!metaEl) {
        metaEl = doc.createElement('meta')
        metaEl.setAttribute('name', 'viewport')
        metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no')
        if (docEl.firstElementChild) {
          docEl.firstElementChild.appendChild(metaEl)
        } else {
          var wrap = doc.createElement('div')
          wrap.appendChild(metaEl)
          doc.write(wrap.innerHTML)
        }
      }
 
      function refreshRem () {
        var width = docEl.getBoundingClientRect().width
        if (width / dpr > 540) {
          width = 540 * dpr
        }
        var rem = width / 10
        docEl.style.fontSize = rem + 'px'
        flexible.rem = win.rem = rem
      }
 
      win.addEventListener('resize', function () {
        clearTimeout(tid)
        tid = setTimeout(refreshRem, 300)
      }, false)
      win.addEventListener('pageshow', function (e) {
        if (e.persisted) {
          clearTimeout(tid)
          tid = setTimeout(refreshRem, 300)
        }
      }, false)
 
      if (doc.readyState === 'complete') {
//          doc.body.style.fontSize = 12 * dpr + 'px';
        doc.body.style.fontSize = 16 + 'px'
      } else {
        doc.addEventListener('DOMContentLoaded', function (e) {
//            doc.body.style.fontSize = 12 * dpr + 'px';
          doc.body.style.fontSize = 16 + 'px'
        }, false)
      }
 
      refreshRem()
 
      flexible.dpr = win.dpr = dpr
      flexible.refreshRem = refreshRem
      flexible.rem2px = function (d) {
        var val = parseFloat(d) * this.rem
        if (typeof d === 'string' && d.match(/rem$/)) {
          val += 'px'
        }
        return val
      }
      flexible.px2rem = function (d) {
        var val = parseFloat(d) / this.rem
        if (typeof d === 'string' && d.match(/px$/)) {
          val += 'rem'
        }
        return val
      }
 
    })(window, window['lib'] || (window['lib'] = {}))
  </script>
  <!-- 环境判断:测试、正式 -->
  <script>
    var host = window.location.host
    ;(function isFormalEnv(host){
      if(host.indexOf('kw13.cn') !== -1){
        window.isFormalEnv = true
        window.isTestEnv = false
      } else if(host.indexOf('kwmzy.com') !== -1) {
        window.isTestEnv = true
        window.isFormalEnv = false
      }
    })(host)
  </script>
  <!-- 腾讯移动统计配置 -->
  <script>
    var mtah5 = {}
    if(window.isFormalEnv){
      mtah5.sid = 500411881
      mtah5.cid = 500432840
    } else { // 本地、测试环境使用
      mtah5.sid = 500412096
      mtah5.cid = 500426037
    }
    var _mtac = {"performanceMonitor":1,"senseQuery":1};
    (function() {
      var mta = document.createElement("script");
      mta.setAttribute("name", "MTAH5");
      mta.setAttribute("sid", mtah5.sid);
      mta.setAttribute("cid", mtah5.cid);
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(mta, s);
    })();
  </script>
  <script>
    window.origin = window.location.origin
  </script>
 </head>
 <body class="loginbg" style="font-size: 12px;">
  <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
  <script type="text/javascript">var Ip=returnCitySN['cip']
    localStorage.setItem('Ip', Ip)</script>
  <iframe src="" style="display:none;" frameborder="0"></iframe>
  <div id="app">
   <div data-v-27a9ab7c="" class="main">
    <div data-v-27a9ab7c="" class="header">
     <div class="left_btn" onclick="location.href='/Shop/Run/index'">
      <img style="margin-top:13px;"src="/asimages/fanhui.png" alt="" class="return" />
     </div> 
     <div class="Maintitle">
      <h3>投注明细</h3>
     </div> 
    </div> 
    <!----> 
    <!----> 
    <div data-v-27a9ab7c="" class="mint-loadmore">
     <div class="mint-loadmore-content">
      <div data-v-27a9ab7c="" class="nav">

       <button data-v-27a9ab7c="" class="mint-button mint-button--default mint-button--normal btn" onclick="location.href='{:U('Home/User/xiazhu')}?t=1'" >
        <!----> <label class="mint-button-text">{$today|date="m-d",###}</label></button>

       <button data-v-27a9ab7c="" class="mint-button mint-button--default mint-button--normal btn" onclick="location.href='{:U('Home/User/xiazhu')}?t=2'">
        <!----> <label class="mint-button-text">{$today-86400|date="m-d",###}</label></button>

       <button data-v-27a9ab7c="" class="mint-button mint-button--default mint-button--normal btn" onclick="location.href='{:U('Home/User/xiazhu')}?t=3'">
        <!----> <label class="mint-button-text">{$today-86400*2|date="m-d",###}</label></button>

       <button data-v-27a9ab7c="" class="mint-button mint-button--default mint-button--normal btn" onclick="location.href='{:U('Home/User/xiazhu')}?t=4'">
        <!----> <label class="mint-button-text">全部</label></button>
      </div> 
      <div data-v-27a9ab7c="" class="page-tab-container c62">
       <div data-v-27a9ab7c="" class="mint-tab-container page-tabbar-tab-container">
        <div class="mint-tab-container-wrap">
		
         <div data-v-27a9ab7c="" class="mint-tab-container-item">
		 <empty name="list">
		 <div data-v-27a9ab7c="" class="no_more" style="">
           <div data-v-27a9ab7c="" class="c123"></div>
		   <if condition="$t eq 1">{$today|date="m-d",###}</if>
		   <if condition="$t eq 2">{$today-86400|date="m-d",###}</if>
		   <if condition="$t eq 3">{$today-86400*2|date="m-d",###}</if>
		   没有数据
          </div>
		  <else/>
		  <if condition="$t eq 4">
            <ul data-v-9f8b0fd4="">
			<volist name="list" id="vo">
			<li data-v-9f8b0fd4="">
			<h3 data-v-9f8b0fd4="">期号：{$vo.number}</h3> 
			<p data-v-9f8b0fd4="">内容：{$vo.jincai}</p>
			<p data-v-9f8b0fd4="">点数：{$vo.add_points}</p>
			<span data-v-9f8b0fd4="" class="btn-cancel">盈亏<a data-v-9f8b0fd4="">{$vo['add_points']-$vo['del_points']}</a>
			</span>
			</li>
			</volist>
			</ul>
          <else/>
		    <ul data-v-9f8b0fd4="">
			<volist name="list1" id="vo" key="i">
			<volist name="vo.order" id="r">	
			<?php
												$periodnumber = $vo['number'];
												$awardnumbers = M('number')->where("periodnumber = $periodnumber")->order('id desc')->find();
												$data = explode(',',$awardnumbers['awardnumbers']);
												?>
			<li data-v-9f8b0fd4="">
			<h3 data-v-9f8b0fd4="">
			<if condition="$vo['game'] eq 'xyft'">{:C('lang_xyft')}
												<elseif condition="$vo['game'] eq 'pk10'" />{:C('lang_pk10')}
												<elseif condition="$vo['game'] eq 'bj28_1'" />{:C('lang_bj28_1')}
												<elseif condition="$vo['game'] eq 'bj28_2'" />{:C('lang_bj28_2')}
												<elseif condition="$vo['game'] eq 'bj28_3'" />{:C('lang_bj28_3')}
												<elseif condition="$vo['game'] eq 'jnd28_1'" />{:C('lang_jnd28_1')}
												<elseif condition="$vo['game'] eq 'jnd28_2'" />{:C('lang_jnd28_2')}
												<elseif condition="$vo['game'] eq 'jnd28_3'" />{:C('lang_jnd28_3')}
												<elseif condition="$vo['game'] eq 'jnd28_4'" />{:C('lang_jnd28_4')}
												<else/>{:C('lang_ssc')}</if>  
												期号：{$vo.number}

												<if condition="$vo['game'] eq 'xyft'">
													<if condition="$xyftnumber eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												
												<elseif condition="$vo['game'] eq 'bj28_1'" />
													<if condition="$bj28_1number eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												<elseif condition="$vo['game'] eq 'bj28_2'" />
													<if condition="$bj28_2number eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												<elseif condition="$vo['game'] eq 'bj28_3'" />
													<if condition="$bj28_3number eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												<elseif condition="$vo['game'] eq 'jnd28_1'" />
													<if condition="$jnd28_1number eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												<elseif condition="$vo['game'] eq 'jnd28_2'" />
													<if condition="$jnd28_2number eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												<elseif condition="$vo['game'] eq 'jnd28_3'" />
													<if condition="$jnd28_3number eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												<else/>
													<if condition="$sscnumber eq $vo['number']">
														(未开奖)
														<else/>
														(
														<volist name="data" id="y" key="i">
															<if condition="$i eq 3">
																{$y}
																<else/>
																{$y},
															</if>
														</volist>
														)	
													</if>
												</if></h3>
            											
			<p data-v-9f8b0fd4="">内容：{$r.jincai}</p>
			<p data-v-9f8b0fd4="">点数：{$r.del_points}</p>
			<span data-v-9f8b0fd4="" class="btn-cancel">盈亏<a data-v-9f8b0fd4="">
			<if condition="$r['game'] eq 'pk10'">
													<if condition="$pk10number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
															<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
													<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
													<else/>
													{$r['add_points']-$r['del_points']}
													</if>
											
												<elseif condition="$r['game'] eq 'jnd28_1'"/>
													<if condition="$jnd28_1number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
														<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
														<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
														<else/>
														{$r['add_points']-$r['del_points']}
													</if>
												<elseif condition="$r['game'] eq 'jnd28_2'"/>
													<if condition="$jnd28_2number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
														<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
														<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
														<else/>
														{$r['add_points']-$r['del_points']}
													</if>
												<elseif condition="$r['game'] eq 'jnd28_3'"/>
													<if condition="$jnd28_3number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
														<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
														<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
														<else/>
														{$r['add_points']-$r['del_points']}
													</if>

												<elseif condition="$r['game'] eq 'bj28_1'"/>
													<if condition="$bj28_1number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
															<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
														<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
														<else/>
														{$r['add_points']-$r['del_points']}
													</if>
												<elseif condition="$r['game'] eq 'bj28_2'"/>
													<if condition="$bj28_2number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
															<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
														<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
														<else/>
														{$r['add_points']-$r['del_points']}
													</if>
												<elseif condition="$r['game'] eq 'bj28_3'"/>
													<if condition="$bj28_3number eq $vo['number']">
														<if condition="C('is_cancel_order') eq '1'">
															<a class="bt bt-red" onclick="del('{$r.id}')">取消</a>
														</if>
														<elseif condition="$r['is_add'] eq 0" />
														<font color="red">未结算</font>
														<else/>
														{$r['add_points']-$r['del_points']}
													</if>
												</if></a>
			</span>
			</li>
			</volist>
			</volist>
			</if>
				</empty>
			</ul>
         </div> 
        </div>
       </div>
      </div> 
      <div class="mint-loadmore-bottom">
       <!----> 
       <span class="mint-loadmore-text">上拉刷新</span>
      </div>
     </div>
	 <div class="pages">
				{$show}
			</div>
    </div>
   </div>
  </div>
  <script src='__PUBLIC__/Common/bootcdn/jquery.js'></script>
		<script src="__PUBLIC__/layer/layer.js"></script>
		<script>
			function del(id){
				layer.open({
				    content: '您确定要取消吗？'
				    ,btn: ['确认', '取消']
				    ,yes: function(index){
				      	layer.close(index);
				      	$.ajax({
	                       	url: "{:U('Home/Run/del')}",
	                       	type: "post",
	                       	data:{'id':id},
	                       	dataType:'json',
	                       	error:function(){
	                       		parent.layer.open({content: '服务器开小差了~',skin: 'msg',time: 2});
		                    },
	                       	success:function(res){
	                       		location.href=location.href;
	                       	}
	                   	});
				    }
				});
			}
			function del_all(number){
				layer.open({
				    content: '您确定要取消吗？'
				    ,btn: ['确认', '取消']
				    ,yes: function(index){
				      	layer.close(index);
				      	$.ajax({
	                       	url: "{:U('Home/Run/del_all')}",
	                       	type: "post",
	                       	data:{'number':number},
	                       	dataType:'json',
	                       	error:function(){
	                       		parent.layer.open({content: '服务器开小差了~',skin: 'msg',time: 2});
		                    },
	                       	success:function(res){
	                       		location.href=location.href;
	                       	}
	                   	});
				    }
				});
			}
		</script>
		<script src="__PUBLIC__/Home/js/cls.js"></script>

 </body>
</html>